package com.erp.remote.goods;

import com.erp.entity.goods.Brand;
import com.erp.util.AjaxResult;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * 商品品牌远程接口
 */
@RequestMapping("/brand")
public interface GoodsBrandRemote {
    @PostMapping("/BatchDel")
    AjaxResult deleteBatch(@RequestBody Integer[] ids);

    @PostMapping("/Batch")
    AjaxResult enableBatch(@RequestBody Integer[] ids, @RequestParam Integer newStatus);

    @PostMapping("/edit")
    AjaxResult editBrand(@RequestBody Brand brand);

    @GetMapping("/detail/{id}")
    AjaxResult brandDetail(@PathVariable Integer id);

    @PostMapping("/list")
    AjaxResult brandList(@RequestBody Map<String, Object> params);

    @PostMapping("/add")
    AjaxResult addBrand(@RequestBody Brand brand);

    @GetMapping("/updateStatus")
    AjaxResult updateStatus(@RequestParam Integer brandId, @RequestParam Integer newStatus);

    @DeleteMapping("/delete/{id}")
    AjaxResult deleteBrand(@PathVariable Integer id);
}
